package com.yanqu.road.server.logic.activity.condition.recharge.base;

import com.yanqu.road.entity.activity.ActivityConditionInfo;
import com.yanqu.road.entity.activity.ActivityInfo;
import com.yanqu.road.server.gameplayer.module.player.ChildModule;
import com.yanqu.road.server.logic.activity.BaseActivityData;

public class RechargeChildTrainNewCondition extends BaseRechargeActivityCondition {

    public RechargeChildTrainNewCondition(ActivityInfo activityInfo, ActivityConditionInfo activityConditionInfo, BaseActivityData baseActivityData, int eventType) {
        super(activityInfo, activityConditionInfo, baseActivityData, eventType);
    }

    @Override
    public boolean isTouch(long param) {
        return player.getModule(ChildModule.class).getAdultChildCount() >= param;
    }
}
